<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<c:set value="${requestScope.cateResponse.data.list }" var="cateList"/>
<!-- Page Preloder -->
<div id="preloder">
	<div class="loader"></div>
</div>

<!-- Header Section Begin -->
<header class="header-section-other">
	<div class="container-fluid">
		<div class="logo">
			<a href="${rootPath }/main.htm?system=main"><img src="${rootPath}/img/little-logo.png" alt=""></a>
		</div>
		<div class="nav-menu">
			<nav class="main-menu mobile-menu">
				<ul>
					<li class="${param.system == 'main' ? 'active':'' }"><a href="${rootPath }/main.htm?system=main">首页</a></li>
					<li class="${param.system == 'today' ? 'active':'' }"><a href="${rootPath }/goodsList.htm?dataType=3&system=today">今日特价</a></li>
					<li class="${param.system == 'goods' ? 'active':'' }"><a href="${rootPath }/goodsList.htm?system=goods">产品</a>
						<ul class="sub-menu">
							<c:forEach items="${cateList }" var="listTemp" varStatus="stat">
								<li><a href="${rootPath }/goodsList.htm?system=goods&classifyId=${listTemp.id}">${listTemp.name }</a></li>
							</c:forEach>
						</ul>
					</li>
					<c:choose>
						<c:when test="${sessionScope.users != null}">
							<li class="${param.system == 'usersmain' ? 'active':'' }"><a href="${rootPath }/head/users/main.htm?system=usersmain">个人中心</a>
								<ul class="sub-menu">
									<li><a href="${rootPath }/head/users/main.htm?system=usersmain">查看个人信息</a></li>
									<li><a href="${rootPath }/head/users/main.htm?operType=update&system=usersmain">修改个人信息</a></li>
									<li><a href="${rootPath }/head/users/cartList.htm?system=usersmain">购物车</a></li>
									<li><a href="${rootPath }/head/orders/ordersList.htm">我的订单</a></li>
									<li><a href="${rootPath }/head/goods/evalList.htm">我的评论</a></li>
									<li><a href="${rootPath }/head/users/logout.htm" onclick="return confirm('确认退出吗?')">退出</a></li>
								</ul>
							</li>
						</c:when>
						<c:otherwise>
							<li class="${param.system == 'main' ? 'login':'' }"><a href="${rootPath }/headLogin.htm?system=login">登陆</a></li>
						</c:otherwise>
					</c:choose>
				</ul>
			</nav>
			<div class="nav-right search-switch">
				<i class="fa fa-search"></i>
			</div>
		</div>
		<div id="mobile-menu-wrap"></div>
	</div>
</header>
<!-- Header End -->
	